package com.wk.kxexamadminister.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wk.kxexamadminister.entity.ManyChoice;
import com.wk.kxexamadminister.entity.ManyChoiceExt;
import io.swagger.annotations.Api;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Controller;

import java.util.List;

@Mapper
public interface ManyChoiceMapper extends BaseMapper<ManyChoice> {
    List<ManyChoiceExt> findAllManyChoice(Integer cId);

    @Select("select * from many_choice where c_id = #{cId} LIMIT 20")
    List<ManyChoice> findLimitManyChoice(Integer cId);
}
